package com.ecoolex.union.pay.retailer.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.union.pay.retailer.entity.UnionPayPopularMerchantProduct;
import com.ecoolex.union.pay.retailer.entity.UnionPayPopularMerchantProductExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UnionPayPopularMerchantProductMapper {
    long countByExample(UnionPayPopularMerchantProductExample example);

    int deleteByExample(UnionPayPopularMerchantProductExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UnionPayPopularMerchantProduct record);

    int insertSelective(@Param("record") UnionPayPopularMerchantProduct record, @Param("selective") UnionPayPopularMerchantProduct.Column ... selective);

    UnionPayPopularMerchantProduct selectOneByExample(UnionPayPopularMerchantProductExample example);

    List<UnionPayPopularMerchantProduct> selectByExample(UnionPayPopularMerchantProductExample example);

    UnionPayPopularMerchantProduct selectByPrimaryKey(Integer id);

    UnionPayPopularMerchantProduct selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UnionPayPopularMerchantProduct record, @Param("example") UnionPayPopularMerchantProductExample example, @Param("selective") UnionPayPopularMerchantProduct.Column ... selective);

    int updateByExample(@Param("record") UnionPayPopularMerchantProduct record, @Param("example") UnionPayPopularMerchantProductExample example);

    int updateByPrimaryKeySelective(@Param("record") UnionPayPopularMerchantProduct record, @Param("selective") UnionPayPopularMerchantProduct.Column ... selective);

    int updateByPrimaryKey(UnionPayPopularMerchantProduct record);

    int batchInsert(@Param("list") List<UnionPayPopularMerchantProduct> list);

    int batchInsertSelective(@Param("list") List<UnionPayPopularMerchantProduct> list, @Param("selective") UnionPayPopularMerchantProduct.Column ... selective);

    int logicalDeleteByExample(@Param("example") UnionPayPopularMerchantProductExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}